package com.test.model;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by 搬砖的小崔
 * 2016-3-21
 */
@Entity
@Table(name="rcc_d_houseValveHistoricalData")
public class HouseValveHistoricalData {
    private int householdValveId;
    private Date planTime;
    private Date readTime;
    private Date equTime;
    private BigDecimal workTime;
    private BigDecimal settingTemperature;
    private Boolean isLockTemperature;
    private BigDecimal temperature;
    private BigDecimal temperatureUp;
    private BigDecimal temperatureDown;
    private String controlType;
    private Boolean switchState;
    private Boolean isAlarm;
    private Boolean isFault;
    private String alarmSettingIds;
    private String faultTypeIds;
    private Boolean isFirstRecord;
    private Boolean isZeroClockRecord;
    private HouseValve householdValve;
    private BigDecimal remainderHeat;

    @Id
    @Column(name = "houseValveId", unique = true, nullable = false)
    public int getHouseholdValveId() {
        return householdValveId;
    }

    public void setHouseholdValveId(int householdValveId) {
        this.householdValveId = householdValveId;
    }

    @Column(name = "planTime")
    public Date getPlanTime() {
        return planTime;
    }

    public void setPlanTime(Date planTime) {
        this.planTime = planTime;
    }

    @Column(name = "readTime")
    public Date getReadTime() {
        return readTime;
    }

    public void setReadTime(Date readTime) {
        this.readTime = readTime;
    }

    @Column(name = "equTime")
    public Date getEquTime() {
        return equTime;
    }

    public void setEquTime(Date equTime) {
        this.equTime = equTime;
    }

    @Column(name = "workTime")
    public BigDecimal getWorkTime() {
        return workTime;
    }

    public void setWorkTime(BigDecimal workTime) {
        this.workTime = workTime;
    }

    @Column(name = "settingTemperature")
    public BigDecimal getSettingTemperature() {
        return settingTemperature;
    }

    public void setSettingTemperature(BigDecimal settingTemperature) {
        this.settingTemperature = settingTemperature;
    }

    @Column(name = "isLockTemperature")
    public Boolean getIsLockTemperature() {
        return isLockTemperature;
    }

    public void setIsLockTemperature(Boolean isLockTemperature) {
        this.isLockTemperature = isLockTemperature;
    }

    @Column(name = "temperature")
    public BigDecimal getTemperature() {
        return temperature;
    }

    public void setTemperature(BigDecimal temperature) {
        this.temperature = temperature;
    }

    @Column(name = "temperatureUp")
    public BigDecimal getTemperatureUp() {
        return temperatureUp;
    }

    public void setTemperatureUp(BigDecimal temperatureUp) {
        this.temperatureUp = temperatureUp;
    }

    @Column(name = "temperatureDown")
    public BigDecimal getTemperatureDown() {
        return temperatureDown;
    }

    public void setTemperatureDown(BigDecimal temperatureDown) {
        this.temperatureDown = temperatureDown;
    }

    @Column(name = "controlType")
    public String getControlType() {
        return controlType;
    }

    public void setControlType(String controlType) {
        this.controlType = controlType;
    }

    @Column(name = "switchState")
    public Boolean getSwitchState() {
        return switchState;
    }

    public void setSwitchState(Boolean switchState) {
        this.switchState = switchState;
    }

    @Column(name = "isAlarm")
    public Boolean getIsAlarm() {
        return isAlarm;
    }

    public void setIsAlarm(Boolean isAlarm) {
        this.isAlarm = isAlarm;
    }

    @Column(name = "isFault")
    public Boolean getIsFault() {
        return isFault;
    }

    public void setIsFault(Boolean isFault) {
        this.isFault = isFault;
    }

    @Column(name = "alarmSettingIds")
    public String getAlarmSettingIds() {
        return alarmSettingIds;
    }

    public void setAlarmSettingIds(String alarmSettingIds) {
        this.alarmSettingIds = alarmSettingIds;
    }

    @Column(name = "faultTypeIds")
    public String getFaultTypeIds() {
        return faultTypeIds;
    }

    public void setFaultTypeIds(String faultTypeIds) {
        this.faultTypeIds = faultTypeIds;
    }

    @Column(name = "isFirstRecord")
    public Boolean getIsFirstRecord() {
        return isFirstRecord;
    }

    public void setIsFirstRecord(Boolean isFirstRecord) {
        this.isFirstRecord = isFirstRecord;
    }

    @Column(name = "isZeroClockRecord")
    public Boolean getIsZeroClockRecord() {
        return isZeroClockRecord;
    }

    public void setIsZeroClockRecord(Boolean isZeroClockRecord) {
        this.isZeroClockRecord = isZeroClockRecord;
    }

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "houseValveId",insertable=false,updatable=false)
    public HouseValve getHouseholdValve() {
        return householdValve;
    }

    public void setHouseholdValve(HouseValve householdValve) {
        this.householdValve = householdValve;
    }

    @Column(name = "remainderHeat")
    public BigDecimal getRemainderHeat() {
        return remainderHeat;
    }

    public void setRemainderHeat(BigDecimal remainderHeat) {
        this.remainderHeat = remainderHeat;
    }
}
